KeyPressed

public interface KeyPressed implements KeyEvent

An event indicating that a keyboard key has been pressed.

Types

Link copied to clipboard
public final class Builder
A builder of KeyPressed.

Functions

Link copied to clipboard
public char keyChar()
Returns the character corresponding to the pressed key or 0 when a keyboard modifier such as Shift, Ctrl, Alt, Command, Win etc.
Link copied to clipboard
public KeyCode keyCode()
Returns the code of the key.
Link copied to clipboard
public KeyLocation keyLocation()
Returns the location of the key on the keyboard.
Link copied to clipboard
Returns the keyboard modifiers applied.
Link copied to clipboard
public static KeyPressed.Builder newBuilder(KeyCode keyCode)
Creates a new KeyPressed builder with the given required parameters.